package com.aaa.book_mall.controller;

import com.aaa.book_mall.dao.TypeDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Description: 类型表的controller
 * @ClassName: TypeController
 * @Author: fengyun
 * @Date: 2021/1/19 21:28
 * @Version: 1.0
 */
@RestController
@RequestMapping("/store")
public class TypeOutController {
    @Autowired
    private TypeDao typeDaoImpl;

    @RequestMapping("/getType")
    public List<List> getAllTypeOut(HttpServletResponse response){
        System.out.println("getAllTypeOut");
        List<List> allType = typeDaoImpl.getAllTypeOut();
        System.out.println(allType);
        return allType;
    }
}
